home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
305
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
1KB
Path: teal.csn.net!not-for-mail
From: thads@csn.net (Thad Smith)
Newsgroups: comp.lang.c,comp.lang.c++,gnu.gcc.help,gnu.g++.help,comp.os.msdos.djgpp,comp.std.c
Subject: Re: float != float and floats as return types
Date: 4 Feb 1996 22:09:25 -0700
Organization: T3 Systems
Message-ID: <icPFxQ9yth8T084yn@csn.net>
References: <4ej9lb$mpc@fu-berlin.de> <4elnjj$er4@server2.rz.uni-leipzig.de>
<4eqc7l$ugh@godzilla.zeta.org.au> <4eqtu3$ddo@der.twinsun.com>
<TANMOY.96Feb1164022@qcd.lanl.gov> <4ettr4$al5@der.twinsun.com>
<TANMOY.96Feb3105644@qcd.lanl.gov>
Reply-To: ThadSmith@acm.org
NNTP-Posting-Host: 199.117.27.22
In article <TANMOY.96Feb3105644@qcd.lanl.gov>,
tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) wrote:
>As you explicitly state, this is a conversion from float to float, so
>no conversion ought to take place according to the section
>quoted. This, I believe, needs to be corrected: I guess the
>possibility of extra precision was not thought of in this section.
I recall that Plauger admitted this in one of his CUJ columns several
years ago.
As a work-around, one can cast an expression twice to trigger the
conversion:
(float)(long double) (f1 + f2)
Thad